From: Brion Vibber Date: Wed, 6 Apr 2005 00:00:03 +0000 (+0000) Subject: * (bug 1788) Fix link duplication when edit/upload comment includes newlines X-Git-Tag: 1.5.0alpha1~383 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=d4c466d595e6d9d2996607364e16fff14d4bca58;p=lhc%2Fweb%2Fwiklou.git * (bug 1788) Fix link duplication when edit/upload comment includes newlines --- diff --git a/includes/Linker.php b/includes/Linker.php index ce1bab5ef6..f830819c8e 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -688,6 +688,7 @@ class Linker { wfProfileIn( $fname ); global $wgContLang; + $comment = str_replace( "\n", " ", $comment ); $comment = htmlspecialchars( $comment ); # The pattern for autogen comments is / * foo * /, which makes for